package com.mengxuegu.common.feign.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
public class RestResponse<T, D extends RuntimeException> {

    @ApiModelProperty(value = "返回码")
    private int ret;
    @ApiModelProperty(value = "消息")
    private String msg;

    @ApiModelProperty(value = "数据项")
    private T data;

    @ApiModelProperty(value = "错误消息")
    private D error;
}
